#ifndef OHOS_RECT_F_H_
#define OHOS_RECT_F_H_

namespace webrtc {

class RectF {
 public:
  RectF();
  RectF(float left, float top, float right, float bottom);
  float Width() const;
  float Height() const;
  float CenterX() const;
  float CenterY() const;
  void Set(float left, float top, float right, float bottom);
  bool IsEmpty() const;

  float left;
  float top;
  float right;
  float bottom;
};

}

#endif //OHOS_RECT_F_H_
